package com.util;

import java.sql.Statement;
import java.sql.Connection;
import java.sql.ResultSet;

public class DatabaseUtil {
    public static void release(ResultSet rs,Statement st,Connection con){
        try {
            if(rs!=null){
                rs.close();
            }
            if(st!=null){
                st.close();
            }
            if(con!=null){
                con.close();
            }
        } catch (Exception e2) {
            // TODO: handle exception
        }
    }
}
